package com.haixiaoke.saas.apartment.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 价格日历对象 biz_calendar_price
 *
 * @author panda
 * @date 2024-03-29
 */
@Data
public class CalendarPrice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 价格日历id
     */
    private Long id;

    /**
     * 房屋配置id
     */
    private Long allocationId;

    /**
     * 房屋id
     */
    private String houseId;

    /**
     * 日历时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate calendarTime;

    /**
     * 日历价格
     */
    private BigDecimal calendarPrice;

    /**
     * 房屋id集合
     */
    private String[] houseIds;

    /**
     * 自定义字段：0能预定，1不能预定
     */
    private String reserveState;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
